package org.huzhp.console.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.huzhp.console.entity.GatewayRoute;
import org.huzhp.console.entity.vo.GatewayRouteVo;

import java.util.List;

/**
 * @Description: java类作用描述
 * @Author: huzp
 * @CreateDate: 2020/3/12 15:28
 * @Version: 1.0
 */
@Mapper
public interface GatewayRouteMapper extends BaseMapper<GatewayRoute> {
    /**
     * 根据routeId查找路由
     *
     * @param routeId
     * @return
     */
    GatewayRouteVo findRouteByRouteId(String routeId);

    /**
     * 获取所有路由信息
     *
     * @return
     */
    List<GatewayRouteVo> findAll();
}
